package com.plwf.lake.mapper;

import com.plwf.lake.entity.Subject;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * 科目表的mapper接口，对应Subject.xml
 */
@Mapper
public interface SubjectMapper {

    //修改科目信息接口,parameterType 为输入参数
    public boolean update(Subject bean);

    //删除科目接口
    public boolean delete(Integer subId);

    //插入科目接口
    public boolean insert(Subject bean);

    //查询所有科目接口  要用resultMap映射
    public List<Subject> select();

    //查询某一个科目接口
    public Subject selectOne(Integer subId);

}
